package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.MasterBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.RecentRaceBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.MasterIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.RecentRaceIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class RecentRaceModel extends RetrofitBaseModel implements RecentRaceIface<RecentRaceBean> {
    LoginService loginService;
    Retrofit retrofit;
    public RecentRaceModel(){
        retrofit=getRetrofit();
        loginService=getLoginService();
    }

    @Override
    public void getRecentRaceList(ListListener<RecentRaceBean> listListener) {
        Call<List<RecentRaceBean>> call=loginService.showrecentracelist();
        callenqueueList(call,listListener);
    }
}
